FROM eclipse-temurin:21.0.8_9-jdk
ENV TZ=Asia/Shanghai
WORKDIR /blog
ADD ./target/resources ./resources
ADD ./target/lib ./lib
ADD ./target/blog.jar ./
CMD ["java","-Dloader.path=./lib","-XX:+PrintCommandLineFlags","-Xmx256m","-XX:+UseZGC","-jar","blog.jar","--spring.profiles.active=pro"]
